<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-cityMasterList-edit" th:object="${cityMasterList}">
            <input id="adCode" name="adCode" th:field="*{adCode}"  type="hidden">
            <div class="form-group">	
                <label class="col-sm-3 control-label">全国区县名称：</label>
                <div class="col-sm-8">
                    <input id="name" name="name" th:field="*{name}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">父类的区划编号：</label>
                <div class="col-sm-8">
                    <input id="parentId" name="parentId" th:field="*{parentId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">0为国家1为省份2为市级3为区县级：</label>
                <div class="col-sm-8">
                    <input id="levelType" name="levelType" th:field="*{levelType}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">区号（由国家编写）：</label>
                <div class="col-sm-8">
                    <input id="areaCode" name="areaCode" th:field="*{areaCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">省市区聚合  省市区：</label>
                <div class="col-sm-8">
                    <input id="mergerName" name="mergerName" th:field="*{mergerName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">所属用户：</label>
                <div class="col-sm-8">
                    <input id="userId" name="userId" th:field="*{userId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">初始价格：</label>
                <div class="col-sm-8">
                    <input id="initPrice" name="initPrice" th:field="*{initPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">初次交易价格：</label>
                <div class="col-sm-8">
                    <input id="firstPrice" name="firstPrice" th:field="*{firstPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">最后交易价格：</label>
                <div class="col-sm-8">
                    <input id="lastPrice" name="lastPrice" th:field="*{lastPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">第一次交易价格：</label>
                <div class="col-sm-8">
                    <input id="firstTransactionTime" name="firstTransactionTime" th:field="*{firstTransactionTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">最后交易时间：</label>
                <div class="col-sm-8">
                    <input id="lastTransactionTime" name="lastTransactionTime" th:field="*{lastTransactionTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">城市总收益：</label>
                <div class="col-sm-8">
                    <input id="allIncome" name="allIncome" th:field="*{allIncome}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">最新购买价格：</label>
                <div class="col-sm-8">
                    <input id="newBuyPrice" name="newBuyPrice" th:field="*{newBuyPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">：</label>
                <div class="col-sm-8">
                    <input id="pname" name="pname" th:field="*{pname}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">状态：
NORMAL:正常，
NORANDCANTBUY:正常但不可购买
REPURCHASE:回购中,
FRLOCKING:审核完成后锁定状态等待用户处理：</label>
                <div class="col-sm-8">
                    <input id="status" name="status" th:field="*{status}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">	
                <label class="col-sm-3 control-label">省所处阶段
初始阶段：1
第二阶段：2
第三阶段：3：</label>
                <div class="col-sm-8">
                    <input id="stage" name="stage" th:field="*{stage}" class="form-control" type="text">
                </div>
            </div>
			<div class="form-group">
				<div class="form-control-static col-sm-offset-9">
					<button onclick="$.modal.close()" class="btn btn-danger" type="button">关闭</button>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "city/cityMasterList"
		$("#form-cityMasterList-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			submitHandler: function(form) {
				$.operate.save(prefix + "/edit", $('#form-cityMasterList-edit').serialize());
			}
		});
	</script>
</body>
</html>
